//
//  NSValueTransformer+LL.h
//  lrlzapp
//
//  Created by dl on 16/2/26.
//  Copyright © 2016年 lrlz. All rights reserved.
//

#import <Foundation/Foundation.h>


extern NSString *const MTLCommonValueTransformerName;
extern NSString *const MTLDateTimeValueTransformerName;

#define TransformerForwardNull      if (value == nil || [value isKindOfClass:[NSNull class]]) {return nil;}\
                                    if ([value isKindOfClass:NSString.class]\
                                        && ([@"null" isEqualToString:value]\
                                        || [@"(null)" isEqualToString:value]\
                                        || [@"<null>" isEqualToString:value])) {return nil;}
#define TransformerReverseNull      if (value == nil || [value isKindOfClass:NSNull.class]) {return @"null";}

@interface NSValueTransformer (LL)

@end
